<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich">

<body>

<ui:composition >
	<h:outputStylesheet>
        .ui-input-invalid {
    background-color:red
}
    </h:outputStylesheet>
    <div class="borderBleu">
    		<rich:extendedDataTable value="#{GestionDesSaisiesControleur.modele.notesPremieres}"
                                var="note" id="notes" frozenColumns="2"
                                 selectionMode="none" rows="10">
               
	            <rich:column>
	                <f:facet name="header">
	                    <h:outputText value="Matricule"/>
	                </f:facet>
	                <h:outputText value="#{note.matricule}"/>
	            </rich:column>
	            <rich:column>
	                <f:facet name="header">
	                    <h:outputText value="Nom prénom"/>                
	                </f:facet>
	                <h:outputText value="#{note.nom } #{note.prenom }  "/>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.quoran']}"/>
	                </f:facet>
	                <rich:inplaceInput  defaultLabel="00.00" value="#{note.coran}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                	<f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.akida']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.educationislamique}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.sira']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.sira}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.expressionoralarabe']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.expressionoralar}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.lecturerecitationarabe']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.lecturerecitationarabe}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.ecriturearabe']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.ecritureetcopiearabe}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.dicteearabe']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.dicteearabe}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.sciencearabe']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.siencearabe}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.tarbiafania']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.tarbiafania}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column width="300px" >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.apprecicationarabe']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="appréciation" value="#{note.appreciationarabe}" style="width: 300px" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.math']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.maths}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column width="300px">
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.appreciations']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.appreciationmath}" style="width: 300px" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.expreorale']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.expressionOrale}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.lecture']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.lecture}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.copie']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.copie}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.ecriture']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.ecriture}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.recitation']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.recitation}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.exerciceecrit']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.exercicesEcrits}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.dictee']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.dictee}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column width="300px">
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.appreciations']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="appréciation" value="#{note.appreciationFr}" style="width: 300px" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.educationphysique']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="00.00" value="#{note.educationPhysique}" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column width="300px">
	                <f:facet name="header">
	                	<h:outputText value="${msg['libelle.matiere.premiere.appreciations']}"/>
	                </f:facet>
	                <rich:inplaceInput defaultLabel="appréciation" value="#{note.appreciationeducationph}" style="width: 300px" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}">
	                <f:validator validatorId="moyenneValidator" />
	                </rich:inplaceInput>
	            </rich:column>
	            <rich:column >
	                <f:facet name="header">
	                	<h:outputText value="Moyenne"/>
	                </f:facet>
	                <h:outputText value="#{note.moyenne}"/>
	            </rich:column>
            </rich:extendedDataTable>
            <div id="boutons">
				<h:commandLink styleClass="btValider" value="Enregistrer" action="#{GestionDesSaisiesControleur.enregistrerNotes}"></h:commandLink>
			</div>
    	</div>
	
			
</ui:composition>
</body>
</html>